//
//  Asyn.h
//  成亲坊项目
//
//  Created by dlios on 15-8-24.
//  Copyright (c) 2015年 dlios. All rights reserved.
//

#import <Foundation/Foundation.h>
@protocol Asyn ;
@interface Asyn : NSObject

@property(nonatomic,retain)NSMutableData *receveData;
@property(nonatomic,copy)void(^finished)(NSData *data);
@property(nonatomic ,assign)id<Asyn>delegate;

+(instancetype)startParser:(NSString *)str partemer:(NSDictionary *)dic file:(NSString *)file block:(void(^)(NSData *data))block ;
@end

@protocol Asyn <NSObject>

-(void)sendeMessage:(NSData *)data;

@end